<template>
  <n-card class="card" content-style="padding: 10px 0;">
    <n-scrollbar x-scrollable trigger="none">
      <v-chart class="chart" :option="option" autoresize theme="echartsTheme" />
    </n-scrollbar>
  </n-card>
</template>

<script setup>
import VChart from "vue-echarts";
const { option } = defineProps(['option']);
import { registerTheme } from 'echarts/core';
import theme from "@/assets/echartsTheme.json";
registerTheme("echartsTheme", theme);

</script>

<style lang="scss" scoped>
.card{
  margin-bottom: 10px;
}
.chart {
  height: 400px;
  min-width: 800px;
}
</style>